<table class="table">
    <foreach item="b" name="brands">
        <tr>
            <td>
                {$b.name|msubstr=0,7}
                <a href="javascript:;" data-mid="{$b.mid}" data-fid="{$fid}" data-bid="{$b.id}" class="show_add">
                    <i class="icon-plus"></i>
                </a>
                <a href="javascript:;" class="phone"  data-mid="{$b.mid}" data-fid="{$fid}" data-bid="{$b.id}">
                    <i class="icon-chevron-right"></i>
                </a>
            </td>
        </tr>
    </foreach>
</table>
<script type="text/javascript">
    $(function () {
        $('a.phone').editorPhone();
    });
</script>